﻿<%@ Page Language="C#" MasterPageFile="~/Design/MasterPage/MasterPage.master" AutoEventWireup="true"
    CodeFile="HappyPlanSrhForm.aspx.cs" Inherits="App_Input_HappyPlanSrhForm" ValidateRequest="false"
    Title="活动计划" %>
<%@ Import Namespace="Shpm.App.Input.Bean" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">

    <script language="javascript" type="text/javascript">
        function openActionDetail(actionId){
            var url  = "../Input/HapppyActionDetailForm.aspx";
            var prm;	            
            prm = "?ACTION_ID=" + actionId;                         
            url += prm;	        
            var win = window.open(url,'_blank','scrollbars,resizable,height=470,width=550');
            win.focus();	        	        
        }
    </script>
        <table width="100%">
        <tr>
            <td>
                <table class="table_border_line">
                    <tr>
                        <td align="left" colspan="6">

                            <script language="javascript">
                                (new TitleBar('SearchBar', '检索条件')).showBar();
                            </script>

                        </td>
                    </tr>
                    <tr>
                        <td style="width: 10%; background: #ffffff"></td>
                        <td style="width: 15%; background: #ffffff" class="list_data_bg_left" nowrap>活动名称：</td>
                        <td style="width: 25%; background: #ffffff" align="left">&nbsp;<asp:TextBox ID="txtActName"
                            runat="server" MaxLength="100" Width="89px"></asp:TextBox></td>
                        <td style="width: 15%;background: #ffffff" class="list_data_bg_left" nowrap>审批状态(部门)：</td>
                        <td align="left" style="width: 25%;background: #ffffff">&nbsp;<asp:DropDownList ID="lstActStat1"
                            runat="server" Width="132px">
                        </asp:DropDownList></td>
                        <td style="width: 10%; background: #ffffff"></td>
                    </tr>
                    <tr>
                        <td style="background: #ffffff"></td>
                        <td align="left" style="background: #ffffff" class="list_data_bg_left" nowrap>活动分类：</td>
                        <td align="left" style="background: #ffffff" nowrap>&nbsp;<asp:DropDownList ID="lstActType"
                            runat="server" Width="89px">
                        </asp:DropDownList></td>
                        <td style="background: #ffffff" class="list_data_bg_left" nowrap>审批状态(公寓)：</td>
                        <td align="left" style="background: #ffffff">&nbsp;<asp:DropDownList ID="lstActStat2"
                            runat="server" Width="132px">
                        </asp:DropDownList></td>
                        <td align="right" style="background: #ffffff"></td>
                    </tr>
                    <tr>
                        <td style="background: #ffffff"></td>
                        <td align="left" class="list_data_bg_left" nowrap="nowrap" style="background: #ffffff">
                            活动日期：</td>
                        <td align="left" colspan="3" style="background: #ffffff">&nbsp;<asp:TextBox ID="txtBeginDate" runat="server"
                            MaxLength="6" Width="89px" onfocus="new Calendar(1900,2015,0,null).show(this);"></asp:TextBox>
                            ~
                            <asp:TextBox ID="txtEndDate" runat="server" Width="89px" MaxLength="6" onfocus="new Calendar(1900,2015,0,null).show(this);"></asp:TextBox></td>
                        <td align="right" style="background: #ffffff"></td>
                    </tr>
                </table>
            </td>
        </tr>
            <tr>
                <td></td>
            </tr>
        <tr>
            <td align="center"><asp:Button ID="btnNew" runat="server" Text=" 新 建 " CssClass="button" OnClick="btnNew_Click" />
                &nbsp;<asp:Button ID="btnSearch" runat="server" Text=" 检 索 " CssClass="button" OnClick="btnSearch_Click" />&nbsp;</td>
        </tr>
    </table>
    <div id="divResult">
        <table width="100%" id="tableResult" runat="server">
            <tr>
                <td align="left">

                    <script language="javascript">
                                        (new TitleBar('SearchBar', '检索结果')).showBar();
                    </script>

                </td>
            </tr>
            <tr>
                <td>
                    <asp:GridView ID="viewSrhRst" runat="server" AllowPaging="True" AutoGenerateColumns="False"
                        CssClass="GridView_table" DataKeyNames="ActionId" BorderStyle="Solid"
                        BorderWidth="3px" OnRowDataBound="viewSrhRst_RowDataBound" OnPageIndexChanging="viewSrhRst_PageIndexChanging" >
                        <Columns>
                            <asp:BoundField HeaderText="活动编号" DataField="ActionId" Visible="False">
                                <HeaderStyle Width="0px" CssClass="GridView_head_grayblue" />
                                <ItemStyle CssClass="GridView_item_left" />
                            </asp:BoundField>
                            <asp:BoundField HeaderText="活动分类" DataField="TypeName">
                                <ItemStyle CssClass="GridView_item_center" />
                                <HeaderStyle Width="10%" CssClass="GridView_head_grayblue" />
                            </asp:BoundField>
                            <asp:TemplateField HeaderText="活动名称">                                
                                <ItemStyle CssClass="GridView_item_left" />
                                <HeaderStyle CssClass="GridView_head_grayblue" Width="20%" />
                                <ItemTemplate>
                                    <asp:LinkButton ID="lkbActName" runat="server"></asp:LinkButton>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:BoundField HeaderText="责任人" DataField="RespPesonName">
                                <HeaderStyle Width="10%" CssClass="GridView_head_grayblue" />
                                <ItemStyle CssClass="GridView_item_left" />
                            </asp:BoundField>
                            <asp:BoundField HeaderText="活动日期" DataField="BespokeDate" DataFormatString="{0:yyyy/MM/dd}"
                                HtmlEncode="False">
                                <HeaderStyle Width="10%" CssClass="GridView_head_grayblue" />
                                <ItemStyle CssClass="GridView_item_center" />
                            </asp:BoundField>
                            <asp:BoundField HeaderText="部门审批" DataField="DeptStat">
                                <HeaderStyle Width="10%" CssClass="GridView_head_grayblue" />
                                <ItemStyle CssClass="GridView_item_center" />
                            </asp:BoundField>
                            <asp:BoundField HeaderText="公寓审批" DataField="MangStat">
                                <HeaderStyle Width="10%" CssClass="GridView_head_grayblue" />
                                <ItemStyle CssClass="GridView_item_center" />
                            </asp:BoundField>
                            <asp:BoundField HeaderText="提交状态" DataField="CommitFlg">
                                <HeaderStyle Width="10%" CssClass="GridView_head_grayblue" />
                                <ItemStyle CssClass="GridView_item_center" />
                            </asp:BoundField>
                            <asp:TemplateField HeaderText="&nbsp;编辑&nbsp; &nbsp;审批&nbsp; &nbsp;报名&nbsp; &nbsp;评估&nbsp; &nbsp;统计">
                                <ItemStyle CssClass="GridView_item_center" />
                                <HeaderStyle CssClass="GridView_head_grayblue" />
                                <ItemTemplate>
                                    &nbsp; &nbsp;
                                    <asp:ImageButton ID="ImageButton1" runat="server" ImageUrl="~/images/info.gif" ToolTip="编辑" 
                                    CommandName="DETAIL" OnCommand="ImageButton_Command" CommandArgument="<%# ((HappyPlanBean)Container.DataItem).ActionId %>"/>
                                    &nbsp; &nbsp;&nbsp; &nbsp;
                                    <asp:ImageButton ID="ImageButton2" runat="server" ImageUrl="~/images/hotmail.gif" ToolTip="审批" 
                                    CommandName="AUDITING" OnCommand="ImageButton_Command" CommandArgument="<%# ((HappyPlanBean)Container.DataItem).ActionId %>"/>
                                    &nbsp; &nbsp;&nbsp; &nbsp;
                                    <asp:ImageButton ID="ImageButton3" runat="server" ImageUrl="~/images/intent.gif" ToolTip="报名" 
                                    CommandName="INTENT" OnCommand="ImageButton_Command" CommandArgument="<%# ((HappyPlanBean)Container.DataItem).ActionId %>"/>
                                    &nbsp; &nbsp;&nbsp; &nbsp;
                                    <asp:ImageButton ID="ImageButton4" runat="server" ImageUrl="~/images/count.gif" ToolTip="评估" 
                                    CommandName="EVALUATE" OnCommand="ImageButton_Command" CommandArgument="<%# ((HappyPlanBean)Container.DataItem).ActionId %>"/>
                                    &nbsp; &nbsp;&nbsp; &nbsp;
                                    <asp:ImageButton ID="ImageButton5" runat="server" ImageUrl="~/images/evaluate.gif" ToolTip="统计" 
                                    CommandName="STAT." OnCommand="ImageButton_Command" CommandArgument="<%# ((HappyPlanBean)Container.DataItem).ActionId %>"/>
                                    &nbsp; &nbsp;
                                </ItemTemplate>
                            </asp:TemplateField>
                        </Columns>
                        <PagerSettings Mode="NumericFirstLast" />
                        <PagerStyle HorizontalAlign="Right" />
                    </asp:GridView>
                </td>
            </tr>
        </table>
    </div>
</asp:Content>
